package com.chen.popj.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 题目提交
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProblemSubmit implements Serializable {
    /**
     * id
     */
    private Integer id;

    /**
     * 比赛提交代码
     */
    private Integer contestCodeId;
    /**
     * 编程语言
     */
    private String language;

    /**
     * 用户代码
     */
    private String code;

    /**
     * 判题信息（json 对象）
     */
    private String judgeInfo;

    /**
     * 题目 id
     */
    private Integer problemId;

    /**
     * 创建用户 id
     */
    private Integer userId;

    /**
     * 提交
     */
    private LocalDateTime submitTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}